Package-level declarations

Types

Link copied to clipboard
@Serializable
data class InputPollOption(val text: String, val textParseMode: ParseMode? = null, val textEntities: List<MessageEntity>? = null)

This object contains information about one answer option in a poll to be sent.

Link copied to clipboard
@Serializable
data class Poll(val id: String, val question: String, val options: List<PollOption>, val questionEntities: List<MessageEntity>? = null, val totalVoterCount: Int, val isClosed: Boolean, val isAnonymous: Boolean, val type: PollType, val allowsMultipleAnswers: Boolean, val correctOptionId: Int? = null, val explanation: String? = null, val explanationEntities: List<MessageEntity>? = null, val openPeriod: Int? = null, val closeDate: Instant? = null)

This object contains information about a poll.

Link copied to clipboard
@Serializable
data class PollOption(val text: String, val voterCount: Int, val textEntities: List<MessageEntity>? = null)

This object contains information about one answer option in a poll.

Link copied to clipboard
@Serializable
enum PollType : Enum<PollType>